<%@ page import="Apr06.NewsService.NewsService" %>
<%@ page import="Apr06.NewsServiceImpl.NewsServiceImpl" %>
<%@ page import="Apr06.pojo.News" %><%--
  Created by IntelliJ IDEA.
  User: wu
  Date: 2022/4/7
  Time: 14:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>修改页面1处理</title>
</head>
<body>
    <%
       String newsid=request.getParameter("newsid");
        if (newsid!=null || newsid !=""){
            int newId=Integer.parseInt(newsid);
            NewsService newsService=new NewsServiceImpl();
            News news=newsService.ServiceSelectById1(newId);
            session.setAttribute("news",news);
            request.getRequestDispatcher("BackShow1.jsp").forward(request,response);
        }
    %>

</body>
</html>
